package com.low.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PsysacountExample {
    protected String pk_name = "P_AcountName";

    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PsysacountExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = pk_name;
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPAcountnameIsNull() {
            addCriterion("P_AcountName is null");
            return (Criteria) this;
        }

        public Criteria andPAcountnameIsNotNull() {
            addCriterion("P_AcountName is not null");
            return (Criteria) this;
        }

        public Criteria andPAcountnameEqualTo(String value) {
            addCriterion("P_AcountName =", value, "pAcountname");
            return (Criteria) this;
        }

        public Criteria andPAcountnameNotEqualTo(String value) {
            addCriterion("P_AcountName <>", value, "pAcountname");
            return (Criteria) this;
        }

        public Criteria andPAcountnameGreaterThan(String value) {
            addCriterion("P_AcountName >", value, "pAcountname");
            return (Criteria) this;
        }

        public Criteria andPAcountnameGreaterThanOrEqualTo(String value) {
            addCriterion("P_AcountName >=", value, "pAcountname");
            return (Criteria) this;
        }

        public Criteria andPAcountnameLessThan(String value) {
            addCriterion("P_AcountName <", value, "pAcountname");
            return (Criteria) this;
        }

        public Criteria andPAcountnameLessThanOrEqualTo(String value) {
            addCriterion("P_AcountName <=", value, "pAcountname");
            return (Criteria) this;
        }

        public Criteria andPAcountnameLike(String value) {
            addCriterion("P_AcountName like", value, "pAcountname");
            return (Criteria) this;
        }

        public Criteria andPAcountnameNotLike(String value) {
            addCriterion("P_AcountName not like", value, "pAcountname");
            return (Criteria) this;
        }

        public Criteria andPAcountnameIn(List<String> values) {
            addCriterion("P_AcountName in", values, "pAcountname");
            return (Criteria) this;
        }

        public Criteria andPAcountnameNotIn(List<String> values) {
            addCriterion("P_AcountName not in", values, "pAcountname");
            return (Criteria) this;
        }

        public Criteria andPAcountnameBetween(String value1, String value2) {
            addCriterion("P_AcountName between", value1, value2, "pAcountname");
            return (Criteria) this;
        }

        public Criteria andPAcountnameNotBetween(String value1, String value2) {
            addCriterion("P_AcountName not between", value1, value2, "pAcountname");
            return (Criteria) this;
        }

        public Criteria andPIdcardnrIsNull() {
            addCriterion("P_IDCardNr is null");
            return (Criteria) this;
        }

        public Criteria andPIdcardnrIsNotNull() {
            addCriterion("P_IDCardNr is not null");
            return (Criteria) this;
        }

        public Criteria andPIdcardnrEqualTo(String value) {
            addCriterion("P_IDCardNr =", value, "pIdcardnr");
            return (Criteria) this;
        }

        public Criteria andPIdcardnrNotEqualTo(String value) {
            addCriterion("P_IDCardNr <>", value, "pIdcardnr");
            return (Criteria) this;
        }

        public Criteria andPIdcardnrGreaterThan(String value) {
            addCriterion("P_IDCardNr >", value, "pIdcardnr");
            return (Criteria) this;
        }

        public Criteria andPIdcardnrGreaterThanOrEqualTo(String value) {
            addCriterion("P_IDCardNr >=", value, "pIdcardnr");
            return (Criteria) this;
        }

        public Criteria andPIdcardnrLessThan(String value) {
            addCriterion("P_IDCardNr <", value, "pIdcardnr");
            return (Criteria) this;
        }

        public Criteria andPIdcardnrLessThanOrEqualTo(String value) {
            addCriterion("P_IDCardNr <=", value, "pIdcardnr");
            return (Criteria) this;
        }

        public Criteria andPIdcardnrLike(String value) {
            addCriterion("P_IDCardNr like", value, "pIdcardnr");
            return (Criteria) this;
        }

        public Criteria andPIdcardnrNotLike(String value) {
            addCriterion("P_IDCardNr not like", value, "pIdcardnr");
            return (Criteria) this;
        }

        public Criteria andPIdcardnrIn(List<String> values) {
            addCriterion("P_IDCardNr in", values, "pIdcardnr");
            return (Criteria) this;
        }

        public Criteria andPIdcardnrNotIn(List<String> values) {
            addCriterion("P_IDCardNr not in", values, "pIdcardnr");
            return (Criteria) this;
        }

        public Criteria andPIdcardnrBetween(String value1, String value2) {
            addCriterion("P_IDCardNr between", value1, value2, "pIdcardnr");
            return (Criteria) this;
        }

        public Criteria andPIdcardnrNotBetween(String value1, String value2) {
            addCriterion("P_IDCardNr not between", value1, value2, "pIdcardnr");
            return (Criteria) this;
        }

        public Criteria andPGroupidIsNull() {
            addCriterion("P_GroupID is null");
            return (Criteria) this;
        }

        public Criteria andPGroupidIsNotNull() {
            addCriterion("P_GroupID is not null");
            return (Criteria) this;
        }

        public Criteria andPGroupidEqualTo(Integer value) {
            addCriterion("P_GroupID =", value, "pGroupid");
            return (Criteria) this;
        }

        public Criteria andPGroupidNotEqualTo(Integer value) {
            addCriterion("P_GroupID <>", value, "pGroupid");
            return (Criteria) this;
        }

        public Criteria andPGroupidGreaterThan(Integer value) {
            addCriterion("P_GroupID >", value, "pGroupid");
            return (Criteria) this;
        }

        public Criteria andPGroupidGreaterThanOrEqualTo(Integer value) {
            addCriterion("P_GroupID >=", value, "pGroupid");
            return (Criteria) this;
        }

        public Criteria andPGroupidLessThan(Integer value) {
            addCriterion("P_GroupID <", value, "pGroupid");
            return (Criteria) this;
        }

        public Criteria andPGroupidLessThanOrEqualTo(Integer value) {
            addCriterion("P_GroupID <=", value, "pGroupid");
            return (Criteria) this;
        }

        public Criteria andPGroupidIn(List<Integer> values) {
            addCriterion("P_GroupID in", values, "pGroupid");
            return (Criteria) this;
        }

        public Criteria andPGroupidNotIn(List<Integer> values) {
            addCriterion("P_GroupID not in", values, "pGroupid");
            return (Criteria) this;
        }

        public Criteria andPGroupidBetween(Integer value1, Integer value2) {
            addCriterion("P_GroupID between", value1, value2, "pGroupid");
            return (Criteria) this;
        }

        public Criteria andPGroupidNotBetween(Integer value1, Integer value2) {
            addCriterion("P_GroupID not between", value1, value2, "pGroupid");
            return (Criteria) this;
        }

        public Criteria andPLoginpinIsNull() {
            addCriterion("P_LoginPin is null");
            return (Criteria) this;
        }

        public Criteria andPLoginpinIsNotNull() {
            addCriterion("P_LoginPin is not null");
            return (Criteria) this;
        }

        public Criteria andPLoginpinEqualTo(String value) {
            addCriterion("P_LoginPin =", value, "pLoginpin");
            return (Criteria) this;
        }

        public Criteria andPLoginpinNotEqualTo(String value) {
            addCriterion("P_LoginPin <>", value, "pLoginpin");
            return (Criteria) this;
        }

        public Criteria andPLoginpinGreaterThan(String value) {
            addCriterion("P_LoginPin >", value, "pLoginpin");
            return (Criteria) this;
        }

        public Criteria andPLoginpinGreaterThanOrEqualTo(String value) {
            addCriterion("P_LoginPin >=", value, "pLoginpin");
            return (Criteria) this;
        }

        public Criteria andPLoginpinLessThan(String value) {
            addCriterion("P_LoginPin <", value, "pLoginpin");
            return (Criteria) this;
        }

        public Criteria andPLoginpinLessThanOrEqualTo(String value) {
            addCriterion("P_LoginPin <=", value, "pLoginpin");
            return (Criteria) this;
        }

        public Criteria andPLoginpinLike(String value) {
            addCriterion("P_LoginPin like", value, "pLoginpin");
            return (Criteria) this;
        }

        public Criteria andPLoginpinNotLike(String value) {
            addCriterion("P_LoginPin not like", value, "pLoginpin");
            return (Criteria) this;
        }

        public Criteria andPLoginpinIn(List<String> values) {
            addCriterion("P_LoginPin in", values, "pLoginpin");
            return (Criteria) this;
        }

        public Criteria andPLoginpinNotIn(List<String> values) {
            addCriterion("P_LoginPin not in", values, "pLoginpin");
            return (Criteria) this;
        }

        public Criteria andPLoginpinBetween(String value1, String value2) {
            addCriterion("P_LoginPin between", value1, value2, "pLoginpin");
            return (Criteria) this;
        }

        public Criteria andPLoginpinNotBetween(String value1, String value2) {
            addCriterion("P_LoginPin not between", value1, value2, "pLoginpin");
            return (Criteria) this;
        }

        public Criteria andPRegtimeIsNull() {
            addCriterion("P_RegTime is null");
            return (Criteria) this;
        }

        public Criteria andPRegtimeIsNotNull() {
            addCriterion("P_RegTime is not null");
            return (Criteria) this;
        }

        public Criteria andPRegtimeEqualTo(Date value) {
            addCriterion("P_RegTime =", value, "pRegtime");
            return (Criteria) this;
        }

        public Criteria andPRegtimeNotEqualTo(Date value) {
            addCriterion("P_RegTime <>", value, "pRegtime");
            return (Criteria) this;
        }

        public Criteria andPRegtimeGreaterThan(Date value) {
            addCriterion("P_RegTime >", value, "pRegtime");
            return (Criteria) this;
        }

        public Criteria andPRegtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("P_RegTime >=", value, "pRegtime");
            return (Criteria) this;
        }

        public Criteria andPRegtimeLessThan(Date value) {
            addCriterion("P_RegTime <", value, "pRegtime");
            return (Criteria) this;
        }

        public Criteria andPRegtimeLessThanOrEqualTo(Date value) {
            addCriterion("P_RegTime <=", value, "pRegtime");
            return (Criteria) this;
        }

        public Criteria andPRegtimeIn(List<Date> values) {
            addCriterion("P_RegTime in", values, "pRegtime");
            return (Criteria) this;
        }

        public Criteria andPRegtimeNotIn(List<Date> values) {
            addCriterion("P_RegTime not in", values, "pRegtime");
            return (Criteria) this;
        }

        public Criteria andPRegtimeBetween(Date value1, Date value2) {
            addCriterion("P_RegTime between", value1, value2, "pRegtime");
            return (Criteria) this;
        }

        public Criteria andPRegtimeNotBetween(Date value1, Date value2) {
            addCriterion("P_RegTime not between", value1, value2, "pRegtime");
            return (Criteria) this;
        }

        public Criteria andPAuthstatusIsNull() {
            addCriterion("P_AuthStatus is null");
            return (Criteria) this;
        }

        public Criteria andPAuthstatusIsNotNull() {
            addCriterion("P_AuthStatus is not null");
            return (Criteria) this;
        }

        public Criteria andPAuthstatusEqualTo(String value) {
            addCriterion("P_AuthStatus =", value, "pAuthstatus");
            return (Criteria) this;
        }

        public Criteria andPAuthstatusNotEqualTo(String value) {
            addCriterion("P_AuthStatus <>", value, "pAuthstatus");
            return (Criteria) this;
        }

        public Criteria andPAuthstatusGreaterThan(String value) {
            addCriterion("P_AuthStatus >", value, "pAuthstatus");
            return (Criteria) this;
        }

        public Criteria andPAuthstatusGreaterThanOrEqualTo(String value) {
            addCriterion("P_AuthStatus >=", value, "pAuthstatus");
            return (Criteria) this;
        }

        public Criteria andPAuthstatusLessThan(String value) {
            addCriterion("P_AuthStatus <", value, "pAuthstatus");
            return (Criteria) this;
        }

        public Criteria andPAuthstatusLessThanOrEqualTo(String value) {
            addCriterion("P_AuthStatus <=", value, "pAuthstatus");
            return (Criteria) this;
        }

        public Criteria andPAuthstatusLike(String value) {
            addCriterion("P_AuthStatus like", value, "pAuthstatus");
            return (Criteria) this;
        }

        public Criteria andPAuthstatusNotLike(String value) {
            addCriterion("P_AuthStatus not like", value, "pAuthstatus");
            return (Criteria) this;
        }

        public Criteria andPAuthstatusIn(List<String> values) {
            addCriterion("P_AuthStatus in", values, "pAuthstatus");
            return (Criteria) this;
        }

        public Criteria andPAuthstatusNotIn(List<String> values) {
            addCriterion("P_AuthStatus not in", values, "pAuthstatus");
            return (Criteria) this;
        }

        public Criteria andPAuthstatusBetween(String value1, String value2) {
            addCriterion("P_AuthStatus between", value1, value2, "pAuthstatus");
            return (Criteria) this;
        }

        public Criteria andPAuthstatusNotBetween(String value1, String value2) {
            addCriterion("P_AuthStatus not between", value1, value2, "pAuthstatus");
            return (Criteria) this;
        }

        public Criteria andPInvalidtimeIsNull() {
            addCriterion("P_InvalidTime is null");
            return (Criteria) this;
        }

        public Criteria andPInvalidtimeIsNotNull() {
            addCriterion("P_InvalidTime is not null");
            return (Criteria) this;
        }

        public Criteria andPInvalidtimeEqualTo(Date value) {
            addCriterion("P_InvalidTime =", value, "pInvalidtime");
            return (Criteria) this;
        }

        public Criteria andPInvalidtimeNotEqualTo(Date value) {
            addCriterion("P_InvalidTime <>", value, "pInvalidtime");
            return (Criteria) this;
        }

        public Criteria andPInvalidtimeGreaterThan(Date value) {
            addCriterion("P_InvalidTime >", value, "pInvalidtime");
            return (Criteria) this;
        }

        public Criteria andPInvalidtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("P_InvalidTime >=", value, "pInvalidtime");
            return (Criteria) this;
        }

        public Criteria andPInvalidtimeLessThan(Date value) {
            addCriterion("P_InvalidTime <", value, "pInvalidtime");
            return (Criteria) this;
        }

        public Criteria andPInvalidtimeLessThanOrEqualTo(Date value) {
            addCriterion("P_InvalidTime <=", value, "pInvalidtime");
            return (Criteria) this;
        }

        public Criteria andPInvalidtimeIn(List<Date> values) {
            addCriterion("P_InvalidTime in", values, "pInvalidtime");
            return (Criteria) this;
        }

        public Criteria andPInvalidtimeNotIn(List<Date> values) {
            addCriterion("P_InvalidTime not in", values, "pInvalidtime");
            return (Criteria) this;
        }

        public Criteria andPInvalidtimeBetween(Date value1, Date value2) {
            addCriterion("P_InvalidTime between", value1, value2, "pInvalidtime");
            return (Criteria) this;
        }

        public Criteria andPInvalidtimeNotBetween(Date value1, Date value2) {
            addCriterion("P_InvalidTime not between", value1, value2, "pInvalidtime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}